export default {
  namespace: 'cartList',
  state: {
    cartList: [],
  },

  effects: {
  },

  reducers: {
    /* 保存購物車列表 */
    saveCartList(state: any, action: any) {
      return {
        ...state,
        cartList: action.payload,
      };
    },
    // clearCartList
    clearCartList(state: any, action: any) {
      return {
        ...state,
        cartList: []
      };
    },
  },
}